<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<div th:replace="/common/head :: head"></div>
<body>
<!-- 网站头部 -->
<div class="fly-header layui-bg-black" th:include="/common/header :: header"></div>


<div class="layui-container fly-marginTop">
  <div class="fly-panel" pad20 style="padding-top: 5px;">
    <!--<div class="fly-none">没有权限</div>-->
    <div class="layui-form layui-form-pane">
      <div class="layui-tab layui-tab-brief" lay-filter="user">
        <ul class="layui-tab-title">
          <li class="layui-this">编辑帖子</li>
        </ul>
        <div class="layui-form layui-tab-content" id="LAY_ucm" style="padding: 20px 0;">
          <div class="layui-tab-item layui-show">
            <form action="/jie/edit" method="post">
              <div class="layui-row layui-col-space15 layui-form-item">
                <div class="layui-col-md3">
                  <label class="layui-form-label">所在专栏</label>
                  <div class="layui-input-block">
                    <select lay-verify="required" disabled name="cardTypeId" lay-filter="column">
                      <option></option> 
                      <option th:selected="${card.cardType.cardTypeId} == 1" value="1">提问</option>
                      <option th:selected="${card.cardType.cardTypeId} == 99" value="99">分享</option>
                      <option th:selected="${card.cardType.cardTypeId} == 100" value="100">讨论</option>
                      <option th:selected="${card.cardType.cardTypeId} == 101" value="101">建议</option>
                      <option th:selected="${card.cardType.cardTypeId} == 168" value="168">公告</option>
                      <option th:selected="${card.cardType.cardTypeId} == 169" value="169">动态</option>
                    </select>
                  </div>
                </div>
                <div class="layui-col-md3">
                  <label class="layui-form-label">技术类型</label>
                  <div class="layui-input-block">
                    <select lay-verify="required" disabled name="technicalId" lay-filter="column">
                      <option></option>
                      <option th:selected="${card.technicalId} == 1" value="1">JAVA</option>
                      <option th:selected="${card.technicalId} == 2" value="2">WEB</option>
                      <option th:selected="${card.technicalId} == 3" value="3">UI</option>
                      <option th:selected="${card.technicalId} == 4" value="4">测试</option>
                      <option th:selected="${card.technicalId} == 5" value="5">新媒体</option>
                      <option th:selected="${card.technicalId} == 6" value="6">Python</option>
                    </select>
                  </div>
                </div>
                <div class="layui-col-md6">
                  <label for="L_title" class="layui-form-label">标题</label>
                  <div class="layui-input-block">
                    <input type="text" id="L_title" readonly th:value="${card.cardTitle}" name="cardTitle" required lay-verify="required" autocomplete="off" class="layui-input">
                    <input type="hidden" name="cardId" th:value="${card.cardId}">
                  </div>
                </div>
              </div>

              <div class="layui-form-item layui-form-text">
                <div class="layui-input-block">
                  <textarea id="L_content"  name="cardContent" th:text="${card.cardContent}" required lay-verify="required" placeholder="详细描述" class="layui-textarea fly-editor" style="height: 260px;"></textarea>
                </div>
              </div>
              <div class="layui-form-item">
                <label for="L_vercode" class="layui-form-label">人类验证</label>
                <div class="layui-input-inline">
                  <input type="text" id="L_vercode" name="vercode" required lay-verify="required" placeholder="请输入验证码" autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-mid">
                   <img class="fly-imagecode" src="/images/captcha"/>
                </div>
              </div>
              <div class="layui-form-item">
                <button class="layui-btn" lay-filter="*" lay-submit>立即修改</button>
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<!-- 页尾 -->
<div th:replace="/common/footer :: footer"></div>

</body>
</html>